Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: allow null/undefined options #1581

Merged
merged 2 commits into from
Sep 19, 2018
Merged

fix: allow null/undefined options #1581

merged 2 commits into from
Sep 19, 2018

Conversation

alanshaw
Copy link
Member

Options should be optional! Our API should be flexible enough to allow passing null or undefined in place of an options object. This PR fixes cases where we assume an options object has been passed.

fixes: #1574

@ghost ghost assigned alanshaw Sep 18, 2018
@ghost ghost added the status/in-progress In progress label Sep 18, 2018
Alan Shaw added 2 commits September 18, 2018 16:28
Options should be optional! Our API should be flexible enough to allow passing null or undefined in place of an options object. This PR fixes cases where we assume an options object has been passed.

fixes: #1574

License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
@alanshaw alanshaw force-pushed the fix/allow-null-options branch from 45c37eb to 485ed9f Compare September 18, 2018 15:29
@alanshaw alanshaw requested a review from daviddias September 18, 2018 18:17
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@alanshaw alanshaw merged commit c73bd2f into master Sep 19, 2018
@ghost ghost removed the status/in-progress In progress label Sep 19, 2018
@alanshaw alanshaw deleted the fix/allow-null-options branch September 19, 2018 11:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing null/undefined for options crashes node
2 participants